package com.example.mxs.service;


import com.example.mxs.domain.User;
import org.springframework.data.domain.Page;


public interface UserService {

    public User findUserById(int id);
    public User findUserByName(String name);
    public User addUser(User user);

    public Page<User> findAllUser(Integer page,Integer size);
    public Page<User> findAllUserByName(Integer page,Integer size,User user);

    public User update(int id,User user);
    public void delete(int id);

}
